Skip to content

🔧 migrate configuration to PHP#848

Merged
garak merged 1 commit intoKnpLabs:masterfrom
garak:php-conf
Oct 13, 2025
Merged

🔧 migrate configuration to PHP#848
garak merged 1 commit intoKnpLabs:masterfrom
garak:php-conf

Conversation

@garak
Copy link
Collaborator

@garak garak commented Oct 9, 2025

Fix #847

@garak garak requested a review from Copilot October 9, 2025 13:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the bundle's configuration from XML format to PHP format, addressing issue #847. The change modernizes the dependency injection configuration by replacing XML-based service definitions with PHP-based ones.

  • Replaced XML configuration files with PHP equivalents using Symfony's container configurator
  • Updated the extension to use PhpFileLoader instead of XmlFileLoader
  • Modified PHP-CS-Fixer configuration to include the config directory and updated migration rule names

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/DependencyInjection/KnpPaginatorExtension.php Changed from XmlFileLoader to PhpFileLoader and removed outdated docblock
config/templating_php.xml Removed XML configuration file
config/templating_php.php Added PHP configuration equivalent with modern container configurator syntax
config/paginator.xml Removed XML configuration file
config/paginator.php Added PHP configuration equivalent with comprehensive service definitions
.php-cs-fixer.php Updated to include config directory and modernized migration rule names

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@garak garak added the hacktoberfest-accepted https://hacktoberfest.digitalocean.com label Oct 9, 2025
@garak garak merged commit 005f360 into KnpLabs:master Oct 13, 2025
16 checks passed
@garak garak deleted the php-conf branch October 13, 2025 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted https://hacktoberfest.digitalocean.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XML configuration is not supported on Symfony 8

2 participants